package controleur;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import vue.PanneauPrincipal;
import vue.PreferenceDialog;

import model.Environnement;
import model.ThreadEnvironnement;

public class Preference implements ActionListener{

	private Environnement env = null;
	private ThreadEnvironnement t = null;
	private PanneauPrincipal panPrinc = null;
	public Preference (Environnement env, ThreadEnvironnement t, PanneauPrincipal panPrinc) {
		this.env = env;
		this.t = t;
		this.panPrinc = panPrinc;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		PreferenceDialog d = new PreferenceDialog(null, "Préférence", false, env, t, panPrinc);
		d.setVisible(true);
	}

}
